package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangwenxue
 */
@Data
public class ModifyAttrDTO {

    /**
     * 属性分类表id
     */
    @NotNull(message = "属性分类表id不能为空")
    @RequestParam(value = "属性分类表id",description = "属性分类表id",required = true)
    private Long attrId;

    @RequestParam(value = "属性名称",description = "品牌名称")
    @Length(max = 32,message = "属性名称不能超过32位")
    private String attrName;
    /**
     * 属性描述
     */
    @RequestParam(value = "属性描述",description = "属性描述")
    @Length(max = 200,message = "属性描述不能超过200位")
    private String attrDesc;

    @RequestParam(value = "属性值信息",description = "属性值信息")
    private List<String> attrValueList;

}
